package com.juyu.miliao.common.constant;

import lombok.Getter;

/**
 * 社区点赞rediskey
 *
 * @author xuanqicheng
 */
public enum FindDynamicInfoRedisKey {

    /**
     * 根据userId,查询动态列表
     */
    REDIS_KEY(RedisKeyPrefix.MI_LIAO_API_KEY + "FindDynamicLikeInfoByFindIdAndUserId:%s:%s",
            "发现动态点赞KEY");


    private String key;

    @Getter
    private String message;

    FindDynamicInfoRedisKey(String key, String message) {
        this.key = key;
        this.message = message;
    }

    public String getKeyFormat(int findId, long userId) {

        return String.format(REDIS_KEY.key, findId, userId);
    }

    
}
